package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.query.TravelCommendQueryObject;
import cn.wolfcode.trip.base.query.TravelQueryObject;

import java.util.List;
import java.util.Map;

public interface TravelCommendMapper {

    int insert(TravelCommend record);

    TravelCommend selectByPrimaryKey(Long id);

    int updateByPrimaryKey(TravelCommend record);

    List<TravelCommend> selectForList(TravelCommendQueryObject qo);

    List<Map<String,Object>> selectForType(TravelQueryObject qo);

    void deleteByState();

    Integer selectTypeById(Long id);

}